<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'table.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="./bamcss/bam.css">
	<script type="text/javascript" src="./plugin/jqueryqrcode/src/jquery.min.js"></script>
<style type="text/css">
.table #td1 {
		width: 14%
	}
	.table #td2 {
		width: 18%
	}
	.table #td3 {
		width: 11%
	}

</style>

  </head>
  <body>
    <table class="table">
    	<c:forEach items="${requestScope.page.list }" var="ui">
   				<tr class="tr2">
						<td id="td1">${ui.users.niuNum}</td>
		   				<td id="td1">${ui.users.nickname}</td>
		   				<td id="td1">${ui.area.areaName}</td>
		   				<td id="td3">4G</td>
		   				<td id="td2">${ui.userIp}</td>
		   				<c:if test="${ui.appOnline==1}">
		   					<td id="td3">在线</td>
		   				</c:if>
		   				<c:if test="${ui.appOnline!=1}">
		   					<td id="td3">下线</td>
		   				</c:if>
		   				<td id="td2">2018-1-1 12:00:00</td>
				  </tr> 
		</c:forEach>
   	</table>
   	
  </body>
   <script defer="defer">
   		var pageNo = ${requestScope.page.pageNo};
		var logCount = ${requestScope.page.logCount };
		var pageCount = ${requestScope.page.pageCount };
	 
   		window.parent.fenye(logCount,pageCount,pageNo);
	</script>
</html>
